<?xml version="1.0" encoding="ISO-8859-1" ?>
<jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ice="http://www.icesoft.com/icefaces/component">
	<jsp:directive.page contentType="text/html;charset=ISO-8859-1"
		pageEncoding="ISO-8859-1" />
	<f:view>
		<ice:outputDeclaration doctypeRoot="html"
			doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
			doctypeSystem="http://www.w3.org/TR/html4/loose.dtd" />
		<html>

			<head>
				<title>Ivas</title>
				<link rel="stylesheet" type="text/css"
					href="./xmlhttp/css/rime/rime.css" />
				<link rel="stylesheet" type="text/css" href="./css/Clases_Qs.css" />
				<script type="text/javascript" src="js/Funciones.js"></script>
			</head>

			<body style="-rave-layout: grid" background="./Media/img/fondo.jpg">

				<table width="100%" cellpadding="0" cellspacing="0"
					style="vertical-align: top" border="0">
					<tr align="center">
						<td align="center" valign="top">
							<ice:panelGrid border="0" cellpadding="0" cellspacing="0">
								<jsp:directive.include file="Cabecera.jsp" />
							</ice:panelGrid>
						</td>
					</tr>
				</table>
				<table width="100%" cellpadding="0" cellspacing="0">
					<tr align="center">
						<td align="center" valign="top">
							<ice:panelGrid columns="2" cellspacing="0" cellpadding="0"
								border="0" columnClasses="Conf_panelgrid1">
								<ice:panelGrid width="220"
									style='background-image: url("./Media/img/fondo_tree.jpg"); background-repeat: no-repeat;'>
									<jsp:directive.include file="menutree.jsp" />
								</ice:panelGrid>
								<ice:panelGrid width="575" style="vertical-align: top; ">



									<ice:form partialSubmit="true"
										style="margin-left: 100px; margin-top: 0px;">
										<ice:panelGrid width="460"
											style='text-align: center; height: 40px;background-image: url("./Media/img/Titulo.gif"); background-position: center; background-repeat: no-repeat'>
											<ice:outputText value="IVAS" styleClass="tituloform" />
										</ice:panelGrid>
										

										<ice:panelGrid width="575">
											<ice:panelGrid columns="4" style="height: 20px">
												<ice:outputText styleClass="qs_label" value="Buscar :" />
												<ice:selectOneMenu value="#{Ivab_MB.busquedacmb}">
													<f:selectItem itemValue="todos" itemLabel="Todos" />
													<f:selectItem itemValue="ivacodigo" itemLabel="Codigo" />
													<f:selectItem itemValue="ivanombre" itemLabel="Nombre" />
												</ice:selectOneMenu>
												<ice:inputText value="#{Ivab_MB.buscar}"
													binding="#{Ivab_MB.txtBuscar}"></ice:inputText>
												<ice:commandButton value="Buscar"
													actionListener="#{Ivab_MB.action_Buscar}"
													image="./Media/img/But4v.bmp" />
											</ice:panelGrid>
										</ice:panelGrid>
										<ice:dataTable var="item" value="#{Ivab_MB.listIvas}"
											id="tableUnimed" rows="6" rendered="true"
											headerClass="iceDatTblColHdrv" width="500">

											<!--<ice:column groupOn="#{item.ivanombre}">
												<f:facet name="header">
													<ice:outputText value="Filtro" styleClass="headertabla" />
												</f:facet>
												<ice:panelGroup>

													<ice:outputText id="deptname" value="#{item.ivanombre}" />
												</ice:panelGroup>
											</ice:column>   -->


											<ice:column style="width: 80px">
												<f:facet name="header">
													<ice:outputText value="Codigo" styleClass="headertabla" />
												</f:facet>
												<ice:outputText value="#{item.ivacodigo}"
													style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />


											</ice:column>
											<ice:column style="width: 180px">
												<f:facet name="header">
													<ice:outputText value="Nombre" styleClass="headertabla" />
												</f:facet>
												<ice:outputText value="#{item.ivanombre}"
													style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
											</ice:column>
											<ice:column style="width: 150px">
												<f:facet name="header">
													<ice:outputText value="Porcentaje" styleClass="headertabla" />
												</f:facet>
												<ice:outputText value="#{item.ivaporcen}"
													style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px; text-align: right;" />
											</ice:column>
											<ice:column>
												<f:facet name="header">
												</f:facet>
												<ice:commandButton value="#{item.ivacodigo}"
													image="./Media/img/Edita.jpg" binding="#{Ivab_MB.cmdedita}"
													action="#{Ivab_MB.action_Editar}" />
											</ice:column>
											<ice:column>
												<f:facet name="header">
												</f:facet>
												<ice:commandButton value="#{item.ivacodigo}"
													image="./Media/img/Eliminar.jpg"
													binding="#{Ivab_MB.cmdelimina}"
													actionListener="#{Ivab_MB.action_confirmacionEliminar}" />
											</ice:column>
										</ice:dataTable>
										<ice:panelGrid columns="4" style="width: 524px; height: 39px">
											<ice:dataPaginator id="paginator" for="tableUnimed"
												paginator="true" paginatorMaxPages="4" style="height: 17px">
												<f:facet name="first">
													<ice:graphicImage style="border:none"
														url="./css/images/arrow-first.gif" />
												</f:facet>
												<f:facet name="last">
													<ice:graphicImage style="border:none"
														url="./css/images/arrow-last.gif" />
												</f:facet>
												<f:facet name="previous">
													<ice:graphicImage style="border:none"
														url="./css/images/arrow-previous.gif" />
												</f:facet>
												<f:facet name="next">
													<ice:graphicImage style="border:none"
														url="./css/images/arrow-next.gif" />
												</f:facet>
												<f:facet name="fastforward">
													<ice:graphicImage style="border:none"
														url="./css/images/arrow-ff.gif" />
												</f:facet>
												<f:facet name="fastrewind">
													<ice:graphicImage style="border:none"
														url="./css/images/arrow-fr.gif" />
												</f:facet>
											</ice:dataPaginator>
											<ice:commandButton value="NUEVO"
												binding="#{Ivab_MB.cmdnuevo}"
												action="#{Ivab_MB.action_Nuevo}" styleClass="botonv" />
											<ice:commandButton value="IMPRIMIR" visible="false"
												actionListener="#{Ivab_MB.action_Imprimir}"
												styleClass="botonv" />
											<ice:commandButton value="IMPRIMIR PARAMETRO" visible="false"
												actionListener="#{Ivab_MB.action_ImprimirParametro}"
												styleClass="botonv" />
											
										</ice:panelGrid>
										<ice:panelPopup draggable="false" modal="true"
											resizable="false" visible="#{Ivab_MB.modalRendered}"
											autoCentre="true" styleClass="Conf_panelgrid2"
											style=" width: 350px; height: 100px;" autoPosition="true">
											<f:facet name="header">
												<ice:panelGroup styleClass="popupHeaderWrapper">
													<ice:outputText value="Confirmacion..."
														styleClass="popupHeaderText" />
												</ice:panelGroup>
											</f:facet>
											<f:facet name="body">
												<ice:panelGroup styleClass="popupBody">
													<ice:outputText styleClass="qs_label"
														value="Realmente desea eliminar el registro " /><br />
														<ice:outputText styleClass="qs_label"
														value=" #{Ivab_MB.nombreEliminar}?" />
													<br />
													<br />
													<center>
														<ice:commandButton type="submit" value="Si"
															actionListener="#{Ivab_MB.action_EliminarTabla}" />
														<ice:commandButton type="submit" value="No"
															actionListener="#{Ivab_MB.toggleModal}" />
													</center>
												</ice:panelGroup>
											</f:facet>
										</ice:panelPopup>
										<ice:panelGrid style="width: 498px; text-align: left">
											<ice:messages id="msg"
												style="width: 20px; height: 50px; color: #AA0000; text-align: left; font-family: Verdana, Arial, Sans-Serif; font-size: 10px" />
										</ice:panelGrid>
									</ice:form>


								</ice:panelGrid>
							</ice:panelGrid>
						</td>
					</tr>
				</table>
			</body>
		</html>
	</f:view>
</jsp:root>
